﻿Public Class Header
    Inherits System.Web.UI.UserControl

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    Protected Sub btnLogout_Click(sender As Object, e As EventArgs) Handles btnLogout.Click
        Session.Abandon()

        Response.Cookies("DangNhap").Expires = DateTime.Now.AddDays(-1)
        Response.Redirect(Request.Url.ToString())
    End Sub
End Class